//2009/08/20 14:26:03
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class ContestCoordinator
{
public:
    double bestAverage(vector <int> scores)
    {
		double mmax = -1.0;
		sort(scores.begin(), scores.end());
		for(int k=0; k<scores.size(); k++)
		{
			double temp = 0.0;
			for(int i=k; i<scores.size() - k; i++)
			{
				temp += scores[i];
			}
			if(scores.size() == 2*k) temp = 0.0;
			else temp /= scores.size() - 2*k;
			if(temp > mmax || mmax == -1) 
				mmax = temp, cout << k << endl;
		}
		return mmax;
    }
};
